package com.sywb.chuangyebao.view;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;

import com.sywb.chuangyebao.R;
import com.sywb.chuangyebao.contract.IncomeDependitureDetailsContract;
import com.sywb.chuangyebao.widget.SuperViewPager;
import com.sywb.chuangyebao.widget.XTabLayout;

import butterknife.BindView;

public class IncomeExpenditureDetailsActivity extends ActionbarActivity<IncomeDependitureDetailsContract.InconmeDependitureDetailsPresenter> implements IncomeDependitureDetailsContract.IncomeDependitureDetailsView{
    @BindView(R.id.income_expenditure_tab)
    XTabLayout incomeExpenditureTab;
    @BindView(R.id.income_expenditure_viewpager)
    SuperViewPager incomeSuperViewPager;
    @Override
    public void initView(Bundle bundle) {
        super.initView(bundle);
        setTitle(R.string.income_dependiture_details);
    }

    @Override
    public int getLayoutId(Bundle bundle) {
        return R.layout.activity_income_expenditure_details;
    }

    @Override
    public void initPresenter() {
        mPresenter.initPresenter(this);
        mPresenter.initTabView(incomeSuperViewPager,incomeExpenditureTab);
    }


    @Override
    public FragmentManager getUserFragmentManager() {
        return getSupportFragmentManager();
    }
}
